package com.ruoyi.psi.sale.delivery.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 查询条件
 */
@Data
public class SaleDeliveryCond extends BaseEntity {
    /**
     * 销售订单出库编号
     */
    @NotNull(message = "销售订单出库编号不能为空")
    @ApiModelProperty(value = "销售订单出库编号", required = true)
    private String saleDeliveryId;

    /**
     * 产品编号
     */
    @NotNull(message = "产品编号不能为空")
    @ApiModelProperty(value = "产品编号", required = true)
    private String produceId;

    /**
     * 客户编号
     */
    @ApiModelProperty("客户编号")
    private String customerInfoId;

    /**
     * 是否审批
     */
    @ApiModelProperty("是否审批")
    private String approvalFlag;

    /**
     * 出库时间
     */
    @ApiModelProperty(value = "出库时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    /**
     * 装箱数
     */
    @ApiModelProperty("装箱数")
    private double packingQty;

    /**
     * 箱数
     */
    @ApiModelProperty("箱数")
    private double boxQty;
}
